﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucProduct.ascx.cs" Inherits="ucControl_ucProduct" %>
<div style="padding-top: 5px">
    <table>
        <tr>
            <td style="padding-left: 7px" class="head_shop">
                <b>Danh sách sản phẩm</b>
            </td>
        </tr>
        <tr>
            <td>
            <ul style="margin-left: -38px; margin-top: 0px">
                <asp:Repeater ID="rpItem" runat="server">
                    <HeaderTemplate>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="border: 1px solid #cccccc">
                            <tr>
                                <td rowspan="3" style="padding-left: 7px">
                                    <a id="A1" runat="server" title='<%# Eval("ItemNumber") %>' href='<%# "~/ChiTietSanPham.aspx?id=" + Eval("IDItem")  %>'>
                                        <asp:Image ID="img" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/Items/" + Eval("ImageURL")+ "&width=105&heigh=64" %>'
                                            AlternateText="No Image" />
                                    </a>
                                </td>
                                <td style="padding-left: 10px; padding-top: 8px">
                                    <b>
                                        <asp:Label ID="lbItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:Label></b>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px">
                                    <asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("ItemDescription").ToString()) %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right; padding-bottom: 8px">
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/ChiTietSanPham.aspx?id=" + Eval("IDItem")  %>'
                                        ForeColor="Red">Chi tiết</asp:HyperLink>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>
                </ul>
            </td>
        </tr>
    </table>
</div>
